<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>销售报价管理</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/baseset.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/checkboxSelect.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/date1.js"></script>
	</head>
	<body>

		<div id="info_all">
			<div id="info_top">
				销售报价管理
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="sellPrice.action" theme="simple"
				cssStyle="margin-top:0px;" id="delrow">
				<div id="btn">
					<input type="button" value="新增"
						onClick="addAction('sellPrice','addInput')" onFocus="this.blur()"
						onMouseOver="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="修改"
						onClick="addAction('sellPrice','update')" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="删除" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="下查" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="审核" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="反审核" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="作废" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="反作废" onClick="" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="明细" onClick="showPHiRPDetail()"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
				</div>
				<div id="info_main">

					<!-- 查询栏 -->
					<div id="select">
						<hr>
						<table>
							<tr>
								<td width="60">
									单据编号
								</td>
								<td width="120">

									<s:textfield name="pssp.sellPriceCode" size="12"></s:textfield>
								</td>
								<td width="60">
									审核状态
								</td>
								<td width="120">
									<s:select list="#{'2':'全部','0':'未审核','1':'审核'}"
										name="pssp.isAuditing">
									</s:select>
								</td>
								<td width="60">
									作废状态
								</td>
								<td width="120">
									<s:select list="#{'2':'全部','0':'正常','1':'已作废'}"
										name="pssp.isCancel">
									</s:select>
								</td>
								<td width="74px">
									购货单位
								</td>
								<td width="130px">
									<s:textfield size="12" id="customerName" readonly="true" />
									<s:hidden name="pssp.customerId" id="customerId"></s:hidden>
									<a href="#"
										onclick="openWin('customer!select.action','selectStaff',800,600,0);return false;"
										onfocus="this.blur()"><img src="images/lookup.gif">
									</a>
								</td>


								<td>
									日期
								</td>
								<td>
									<s:textfield name="pssp.createDate" size="12" value="选择时间"
										id="createDate" readonly="true"
										onclick="calendar.setHook(this)"></s:textfield>
								</td>

							</tr>
						</table>
					</div>
					<div class="sele">
						<s:submit onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" value="查询" id="btnsize" />
						<input type="reset" value="重置" onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize" />
						<hr>
					</div>


					<!-- 信息显示栏 -->
					<div id="info_info2">
						<table id="info_table" width="790" cellspacing=1px cellpadding=1px
							class="sortable">
							<thead>
								<tr>
									<th>
										<input type="checkbox" onClick="selectAll()" />
									</th>
									<th width="80">
										审核标志
									</th>
									<th width="90">
										日期
									</th>
									<th width="80">
										单据编号
									</th>
									<th width="80">
										购货单位
									</th>
									<th width="70">
										币别
									</th>
									<th width="80">
										汇率
									</th>
									<th width="80">
										主管
									</th>
									<th width="70">
										部门
									</th>
									<th width="70">
										业务员
									</th>
									<th width="70">
										审核人
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
								</tr>
								<s:if test="!sellprices.isEmpty">
									<s:iterator value="sellprices">
										<tr>
											<td>
												<s:checkbox name="rowlist"
													fieldValue="%{sellprice.sellPriceId}" theme="simple"
													value="false" />
											</td>
											<td align="center">
												<s:if test="sellprice.isAuditing == 0">
														未审核
												</s:if>
												<s:elseif test="sellprice.isAuditing == 1">
													<img src="../../images/yes.gif">
												</s:elseif>
											</td>
											<td>
												<s:property value="sellprice.createDate" />
											</td>
											<td>
												<s:property value="sellprice.sellPriceCode" />
												<s:hidden value="sellprice.sellPriceId"></s:hidden>
												&nbsp;
											</td>
											<td>
												<s:property value="customer.customerName" />
												&nbsp;
											</td>
											<td>
												<s:property value="currency.currencyName" />
												&nbsp;
											</td>
											<td>
												<s:property value="currency.accountRate" />
												&nbsp;
											</td>
											<td>
												<s:property value="manager.candiateName" />
												&nbsp;
											</td>
											<td>
												<s:property value="department.departmentName" />
												&nbsp;
											</td>
											<td>
												<s:property value="bussinesser.candiateName" />
												&nbsp;
											</td>
											<td>
												<s:property value="sellprice.auditinger" />
												&nbsp;
											</td>
										</tr>
									</s:iterator>
								</s:if>
								<s:else>
									<tr>
										<td colspan="5">
											数据库中无记录！
										</td>
									</tr>
								</s:else>

							</tbody>
							<tfoot>
								<tr>

								</tr>
							</tfoot>
						</table>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
						</script>
					</div>
				</div>
			</s:form>
		</div>

	</body>
</html>

